package com.demoapps.client;

import com.demoapps.client.mvp.view.IMainView;
import com.demoapps.client.mvp.view.ISettingsView;
import com.demoapps.client.mvp.view.main.MainView;
import com.demoapps.client.mvp.view.settings.SettingsView;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.place.shared.PlaceController;

public class ClientFactoryImpl implements ClientFactory {
	private final EventBus eventBus = new SimpleEventBus();
	private final PlaceController placeController = new PlaceController(eventBus);
	
	private final IMainView mainView = new MainView();
	private final ISettingsView settingsView = new SettingsView();
	
	@Override public EventBus getEventBus() { return eventBus; }
	@Override public PlaceController getPlaceController() { return placeController; }
	@Override public IMainView getMainView() { return mainView; }
	@Override public ISettingsView getSettingsView() { return settingsView; }

}
